<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link href="/static/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/static/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/static/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link href="/static/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
    <link href="/static/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/static/css/kkpager_blue.css" />
    <title></title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 系统设置 <span class="c-gray en">&gt;</span> 操作日志  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">

    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th class="head0" width="5%">操作id</th>
                <th class="head0" width="5%">操作人姓名</th>
                <th class="head0" width="50%">具体操作信息</th>
                <th class="head0" width="10%">操作时间</th>

            </tr>
            </thead>

                <tbody >
                <th:block  th:each="bean: ${retInfo.obj.list}">
                    <tr class="text-c" id="table">
                        <td th:text="${bean.id}"></td>
                        <td th:text="${bean.admin_name}"></td>

                        <td th:text="${bean.admin_operation }"></td>
                        <td th:text="${#dates.format(bean.operation_time, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    </tr>
                </th:block>
            </tbody>
        </table>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/kkpager.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<div th:if="${retInfo.mark == '0'}">
    <div style="margin: 0px 20px 0px 20px">
        <div id="kkpager"></div>
    </div>
    <script  th:inline="javascript">

        //init
        $(function() {
            /*<![CDATA[*/
            var totalPage = [[${retInfo.obj.pages}]];
            var totalRecords = [[${retInfo.obj.total_record}]];
            var pageNo = [[${retInfo.obj.current_page}]];
            var page_size = [[${retInfo.obj.page_size}]];

            /*]]>*/
            if(!pageNo){
                pageNo = 1;
            }
            //生成分页
            //有些参数是可选的，比如lang，若不传有默认值
            kkpager.generPageHtml({
                pno : pageNo,
                //总页码
                total : totalPage,
                //总数据条数
                totalRecords : totalRecords,

                getLink : function(n){
                    var href = "/admin/operation/list" + "?page_size=" + page_size  + "&current_page=" + n + "&token="  + sessionStorage.getItem("token")
                    return href;
                }

            });
        });
    </script>
</div>

</body>
</html>
